#include <stdio.h>
int main()
{
	double a, b, c, d, e;
	scanf_s("%lf %lf %lf %lf %lf", &a, &b, &c, &d, &e);
	printf("%lf\n", (a + b + c + d + e) / 5);
	printf("%lf\n", a + b + c + d + e);
}